package vn.edu.saigontech.ncms.model.enumeration;

public enum TeachingInterruptionReason {

	CANCEL("cancel"), SUBSTITUTE("substitute"), TEST("test");
	
	private String key;
	
	private TeachingInterruptionReason(String key) {
		this.key = key;
	}
	
	public static TeachingInterruptionReason create(String name) {
		try {
			return valueOf(name);
		}
		catch(Exception ex) {}
		return null;
	}
	
	public String getKey() {
		return key;
	}
}